<template>
  <div class="welcome">
    <div class="user_data top">
      <div class="header">
        <div>
          <span>用户数据</span>
          <a-icon :spin="spin" @click="refresh" type="sync" :style="{ fontSize: '16px', color: '#08c' }" />
        </div>
      </div>
      <div class="box">
        <div class="item">
          <p>今日活跃用户数</p>
          <span>{{ 2000 }}</span>
        </div>
        <div class="item">
          <p>总用户数</p>
          <span>{{ 2000 }}</span>
        </div>
        <div class="item">
          <p>今日新增用户数</p>
          <span>{{ 2000 }}</span>
        </div>
      </div>
    </div>
    <div class="user_data">
      <div class="header">
        <div>
          <span>绩效概况</span>
          <a-icon :spin="spin" @click="refresh" type="sync" :style="{ fontSize: '16px', color: '#08c' }" />
        </div>
        <div class="range">
          <a-range-picker @change="onChange" />
          <a-button type="primary" class="search">查询</a-button>
          <a-button>重置</a-button>
        </div>
      </div>
      <div class="box">
        <div class="item">
          <p>充值金额（总额/笔数）</p>
          <span>{{ 2000 }}</span>
        </div>
        <div class="item">
          <p>投资项目（总额/笔数）</p>
          <span>{{ 2000 }}</span>
        </div>
      </div>
      <div class="box">
        <div class="item">
          <p>提现申请（总数/笔数）</p>
          <span>{{ 2000 }}</span>
        </div>
        <div class="item">
          <p>提现拒绝（总数/笔数）</p>
          <span>{{ 2000 }}</span>
        </div>
        <div class="item">
          <p>提现完成（总数/笔数）</p>
          <span>{{ 2000 }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'welcome',
  components: {},
  data() {
    return {
      spin: false,
    }
  },
  computed: {},
  methods: {
    refresh() {
      this.spin = true
    },
    onChange(date, dateString) {
      console.log(date, dateString)
    },
  },
}
</script>
<style lang="less" scoped>
.welcome {
  .top {
    margin-bottom: 60px;
  }
  .header {
    margin-left: 100px;
    display: flex;
    align-items: center;
    span {
      font-weight: 700;
      font-size: 20px;
      margin-right: 10px;
    }

    .range {
      margin-left: 40px;
      .search {
        margin-left: 5px;
        margin-right: 15px;
      }
    }
  }
  .box {
    display: flex;
    align-items: center;
    .item {
      margin-left: 100px;
      display: flex;
      flex-direction: column;
      width: 300px;
      padding: 20px 0;
      font-size: 20px;
      margin-top: 20px;
      span {
        border-radius: 5px;
        background: #fff;
        width: 300px;
        height: 90px;
        line-height: 90px;
        text-align: center;
        font-size: 22px;
        font-weight: 600;
      }
    }
  }
}
</style>
